
varying vec3 N, L;

void main(void) {
   gl_Position = ftransform();

   vec3 lightPos = vec3(0.0, 0.0, -1.0);
   vec4 V = gl_ModelViewMatrix * gl_Vertex;
   N = gl_NormalMatrix * gl_Normal;
   L = lightPos - V.xyz;

   gl_FrontColor = gl_Color;
   gl_BackColor = gl_Color;
}